package il.technion.cs236369.interfaces;

/**
 * A session interface
 * 
 * @author Gal Lalouche
 * 
 */
public interface ISession {
	/**
	 * Sets a session variable
	 * 
	 * @param name The variable's name
	 * @param value The variable's value
	 */
	void set(String name, Object value);

	/**
	 * Gets a variables value
	 * 
	 * @param name The variable's name
	 * @return The variable's value, or null if it doesn't exist
	 */
	Object get(String name);

	/**
	 * Invalidates all session data
	 */
	void invalidate();
}
